import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

ThemeData darkTheme = ThemeData.dark().copyWith(
  colorScheme: ColorScheme.fromSeed(
    brightness: Brightness.dark,
    contrastLevel: -1,
    dynamicSchemeVariant: DynamicSchemeVariant.tonalSpot,
    seedColor: Colors.grey[600]!,
  ),
  bottomNavigationBarTheme: BottomNavigationBarThemeData(
    elevation: 3,                     // 底部导航栏阴影高度
    selectedItemColor: Colors.blueAccent, // 选中项颜色
    unselectedItemColor: Colors.grey,     // 未选中项颜色
    backgroundColor: Colors.grey[900]!,   // 背景色
    type: BottomNavigationBarType.fixed,  // 固定类型（始终显示所有项）
    selectedIconTheme: const IconThemeData(size: 16), // 选中图标大小
    unselectedIconTheme: const IconThemeData(size: 16), // 未选中图标大小
    selectedLabelStyle: const TextStyle(fontSize: 12), // 选中标签文字大小
    unselectedLabelStyle: const TextStyle(fontSize: 12), // 未选中标签文字大小
    enableFeedback: false,              // 启用点击反馈（水波纹效果）
  ),
  appBarTheme: AppBarTheme(
    backgroundColor: Colors.grey[900],
    titleTextStyle: TextStyle(fontSize: 20),
    systemOverlayStyle: SystemUiOverlayStyle(
      systemNavigationBarColor: Colors.transparent,
      systemNavigationBarIconBrightness: Brightness.light,
    )
  ),
);